package cn.tedu.service;


import cn.tedu.pojo.ApplicationForm;
import cn.tedu.pojo.Chapter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "novel-system",contextId = "remoteService2")
public interface RemoteService {
    @PutMapping("/roleAndNovelApplication")
    void roleAndNovelApplication(@RequestBody ApplicationForm applicationForm);

    @PutMapping("/chapterApplication")
    String chapterApplication(@RequestBody Chapter chapter);

    @GetMapping("/getEditorToAuthor")
    ApplicationForm getEditToAuthor(@RequestParam("author") String author);
}
